﻿<%@ Page Title="Quản lý lớp tín chỉ" Language="C#" MasterPageFile="~/NhanVien/NhanVien.master" AutoEventWireup="true" CodeFile="QuanLyLopTC.aspx.cs" Inherits="NhanVien_QuanLyLopTC" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
        <div class="wrap">
            <h2>
                Quản lý thông tin lớp tín chỉ
                <asp:HyperLink ID="HyperLink2" runat="server" CssClass="node"
                NavigateUrl="~/NhanVien/QuanLySinhVien.aspx" BackColor="#F1F1F2" >Chi tiết lớp tín chỉ</asp:HyperLink>
            </h2>
        </div>
        
        <div style="clear: both;">&nbsp;</div>
        <hr />
        
        <div align="center" style="width:100%; border: solid 1px #CCCCCC;padding-top:0px; height:300px;  overflow:auto;" >
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        <asp:GridView ID="GridView_LopTC" runat="server" AllowPaging="True" 
         AutoGenerateColumns="False" Width="100%" DataKeyNames="MsLopTC" Font-Size="Medium" 
                CellPadding="4" ForeColor="#333333" GridLines="None" 
                onpageindexchanging="GridView_LopTC_PageIndexChanging" 
                onrowdatabound="GridView_LopTC_RowDataBound" >
            <RowStyle BackColor="#EFF3FB" />

         <Columns>
            <asp:TemplateField HeaderText="" >
                <ItemTemplate>
                    <input name="MyRadioButton" type="radio"  style="width:35px;"
                                value='<%# Eval("MsLopTC") %>' />
                </ItemTemplate>
            </asp:TemplateField>
             <asp:BoundField DataField="MsLopTC" HeaderText="Mã lớp tín chỉ" ReadOnly="True" 
                 SortExpression="MsLopTC"/>
             <asp:BoundField DataField="MsMonHoc" HeaderText="Mã môn học"
                 SortExpression="MsMonHoc" />
            <asp:TemplateField HeaderText="Tên môn học">
                <ItemTemplate>
                    <%#Eval("tbl_MONHOC.TenMonHoc")%> 
                </ItemTemplate>
            </asp:TemplateField>

             <asp:BoundField DataField="NgayBatDau" HeaderText="Ngày bắt đầu" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False"
                 SortExpression="NgayBatDau" />
             <asp:BoundField DataField="NgayKetThuc" HeaderText="Ngày kết thúc" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False"
                 SortExpression="NgayKetThuc" />
            <asp:HyperLinkField DataNavigateUrlFields="MsLopTC" DataNavigateUrlFormatString="./QuanLySinhVien.aspx?MSLTC={0}" 
                 Text="Danh sách sinh viên"  ControlStyle-BackColor="#F1F1F2" >
                <ControlStyle BackColor="#F1F1F2" CssClass="link1" />
             </asp:HyperLinkField>

         </Columns>
            <RowStyle BackColor="#EFF3FB" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BorderColor="#CC00FF" BackColor="#2461BF" />
            <AlternatingRowStyle BackColor="White" />
     </asp:GridView>
             </ContentTemplate>
        </asp:UpdatePanel>

        <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
            ContextTypeName="DataClassesDataContext" TableName="tbl_LOPTCs">
        </asp:LinqDataSource>
    </div>
    
</asp:Content>

